package model;

import java.io.Serializable;
import java.util.ArrayList;

public class User implements Serializable {

	private static final long serialVersionUID = 1L;
	String userName;
	String password;
	String name;
	String family;
	String phone;
	boolean isAdmin;
	ArrayList<String> courses;
	
	public User(String userName,String password,String name,String family,String phone,
			Boolean isAdmin,ArrayList<String> courses){
		this.userName = new String(userName);
		this.password = new String(password);
		this.name = new String(name);
		this.family = new String(family);
		this.phone = new String(phone);
		this.isAdmin = isAdmin;
		this.courses = new ArrayList<String>(courses);
	}
	
	public String getUserName(){
		return userName;
	}
	
	public String getPassword(){
		return password;
	}
	
	public String getName(){
		return name;
	}
	
	public String getFamily(){
		return family;
	}
	
	public String getPhone(){
		return phone;
	}
	
	public boolean isAdmin() {
		return isAdmin;
	}
	
	public ArrayList<String> getCourses(){
		return courses;
	}
}
